package com.zlx.mall.base.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.Instant;

/**
 * <p>
 * Quartz作业日志表
 * </p>
 *
 * @author taotao
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@TableName("`sc_quartz_job_log`")
public class ScQuartzJobLog implements Serializable {

    private static final long serialVersionUID = 1L;

    /** PK,AI */
    @TableId(value = "`id`", type = IdType.AUTO)
    private Long id;
    /** Job Group */
    @TableField("`job_group`")
    private String jobGroup;
    /** Job Name */
    @TableField("`job_name`")
    private String jobName;
    /** Job类名 */
    @TableField("`job_class_name`")
    private String jobClassName;
    /** 作业数据，json格式 */
    @TableField("`job_data`")
    private String jobData;
    /** 执行器ip地址 */
    @TableField("`executor`")
    private String executor;
    /** Fire Time */
    @TableField("`fire_time`")
    private Long fireTime;
    /** Job Run Time */
    @TableField("`job_run_time`")
    private Long jobRunTime;
    /** Exception Error Message */
    @TableField("`error_message`")
    private String errorMessage;
    /** 删除状态 {0-exist !0-deleted} */
    @TableField("`is_delete`")
    private Long isDelete;
    /** 创建时间 */
    @TableField("`create_timestamp`")
    private Instant createTimestamp;
    /** 修改时间 */
    @TableField("`modify_timestamp`")
    private Instant modifyTimestamp;

    /** PK,AI */
    public static final String ID = "id";
    /** Job Group */
    public static final String JOB_GROUP = "job_group";
    /** Job Name */
    public static final String JOB_NAME = "job_name";
    /** Job类名 */
    public static final String JOB_CLASS_NAME = "job_class_name";
    /** 作业数据，json格式 */
    public static final String JOB_DATA = "job_data";
    /** 执行器ip地址 */
    public static final String EXECUTOR = "executor";
    /** Fire Time */
    public static final String FIRE_TIME = "fire_time";
    /** Job Run Time */
    public static final String JOB_RUN_TIME = "job_run_time";
    /** Exception Error Message */
    public static final String ERROR_MESSAGE = "error_message";
    /** 删除状态 {0-exist !0-deleted} */
    public static final String IS_DELETE = "is_delete";
    /** 创建时间 */
    public static final String CREATE_TIMESTAMP = "create_timestamp";
    /** 修改时间 */
    public static final String MODIFY_TIMESTAMP = "modify_timestamp";
}
